package cap2.pk;

public class Z extends Y{
	static{
		System.out.println("Static Z");
	}
	static void goZ(){
		System.out.println("Static Z go()");
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("1 ");
		
	}

}

class Y extends X{
	static{
		System.out.println("Static Y");
	}
	static void goY(){
		System.out.println("Static Z go()");
	}
}

class X extends W{
	static{
		System.out.println("Static X");
	}
	static void goX(){
		System.out.println("Static Z go()");
	}
}
class W{
	static{
		System.out.println("Static W");
	}
	static void goW(){
		System.out.println("Static Z go()");
	}
}